/*********************************************************************************
 *      Copyright:  (C) 2020 YangZhengQing<2489833081@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  thread_func.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(04/27/2020)
 *         Author:  YangZhengQing <2489833081@qq.com>
 *      ChangeLog:  1, Release initial version on "04/27/2020 07:34:36 PM"
 *                 
 ********************************************************************************/
#ifndef _THREAD_FUNC_H_
#define _THREAD_FUNC_H_


/* 定义子线程参数结构体*/
typedef struct
{
    char *serv_IP;
    int   serv_port;

}pthread_args_t;

/* 定义一个函数类型*/
typedef void *(THREAD_BODY) (void *thread_arg);


int thread_start(pthread_t * thread_id, THREAD_BODY * thread_workbody,  void *pthread_args);
int pthread_init(pthread_attr_t *pthread_attr);


#endif

